package blacklist

import (
	"gateway"
	"gateway/core"
)

type BlackList struct {
	address string
}

func (blackList BlackList) Call(context core.GatewayContext) {

	/**
	暂时返回成功,后续可直连redis或者通过rpc调用实现.
	*/
	context.Response.Success = gateway.Success_Code
	context.Response.Msg = gateway.Success_Msg

}

func (blackList BlackList) GetName() string {
	return gateway.Pipe_BlackList
}

func init() {
	core.GetInstance().Register(gateway.Pipe_BlackList, BlackList{})
}
